/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SocialNetPanelTest.java
 *
 * Created on Jul 19, 2009, 11:29:59 AM
 */
package JungSocialNetPackage;


/**
 *
 * @author Heather
 */
public class CCPVSocialNetPanelTest extends javax.swing.JApplet
{

  /** Initializes the applet SocialNetPanelTest */
  public void init()
  {
    try
    {
      java.awt.EventQueue.invokeAndWait(new Runnable()
      {

        public void run()
        {
          initComponents();
          testPanel.setSize(1000, 1000);
          sp.setSize(testPanel.getSize());
          testPanel.add(sp);
          testPanel.repaint();
          System.out.println(testPanel.getComponentCount());
          System.out.println(sp.getSize());
          System.out.println(testPanel.getPreferredSize());
        }
      });
    } catch (Exception ex)
    {
      ex.printStackTrace();
    }
  }

  /** This method is called from within the init() method to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    testPanel = new javax.swing.JPanel();

    testPanel.setLayout(null);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addComponent(testPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 615, Short.MAX_VALUE)
    );
    layout.setVerticalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addComponent(testPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 507, Short.MAX_VALUE)
    );
  }// </editor-fold>//GEN-END:initComponents
  // Variables declaration - do not modify//GEN-BEGIN:variables
  private javax.swing.JPanel testPanel;
  // End of variables declaration//GEN-END:variables
  CCPVSocialNetPanel sp = new CCPVSocialNetPanel();
}
